<?xml version="1.0"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" version="2.1">
	<jsp:directive.page contentType="text/html; charset=UTF-8" />
	<jsp:directive.page isELIgnored="false" />
	<jsp:output omit-xml-declaration="false" doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.1//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd" />
		<jsp:useBean id="ListaProductosBean"
		class="es.albarregas.beans.ListaProductosBean" scope="session" />
		<jsp:useBean id="clienteBean" class="es.albarregas.beans.ClienteBean"
		scope="session" />
	<c:if test="${param.invalidarSesion!=null}">
		<jsp:scriptlet>session.invalidate();</jsp:scriptlet>
	</c:if>	
	<html>
<head>
<script type="text/javascript" language="javascript"
	src="${pageContext.request.contextPath }/js/jquery-1.10.2.min.js">
<!--asdf -->	
</script>
<script type="text/javascript" language="javascript"
	src="${pageContext.request.contextPath }/js/jquery.cycle.all.js">
<!--asdf -->	
</script>
</head>
<body>
	<c:choose>
		<c:when test="${clienteBean.tipoAcceso=='Administrador'}">
			<jsp:include page="VisPedidosAdmin.jsp" />
		</c:when>
		<c:otherwise>
			<jsp:include page="Cabecera.jsp" />
			<div id="contenedor">
			<div id="asdf" style="float: left;">
				<div id="slider" style="float: left;">
					<!--<jsp:setProperty property="clausulaWhere" name="ListaProductosBean"
					value="${clausula}" />
					<c:forEach var="producto" items="${ListaProductosBean.producto}">					
					</c:forEach>-->
					<img alt="salon" title="salón"
						src="img/Slide/Slide001.jpg"  width="680" height="250"  />
					<img alt="dormitorio" title="dormitorio"
						src="img/Slide/Slide002.jpg"  width="680" height="250"  />
					<img alt="despacho" title="despacho"
						src="img/Slide/Slide003.jpg"  width="680" height="250" />
					<img alt="despacho" title="despacho"
						src="img/Slide/Slide004.jpg"  width="680" height="250"  />
				</div>
				<H1 id="H1BienVenida">Tu tienda Online !!</H1>	
				</div>
				
				<jsp:include page="VisAsideOfertas.jsp" >
					<jsp:param value="limit 1" name="limit"/>
				
				</jsp:include>
				<jsp:include page="VisPie.jsp" />
				
				
				
				
				
			</div>
		</c:otherwise>
	</c:choose>
	<script type="text/javascript">
		$(function() {
			$('#slider').cycle({
				fx : 'all',
				speed : 1500,
				timeout : 3000
			});
		});
	</script>
</body>

	</html>
</jsp:root>